namespace Arcane.Source.Combat
{
    public class RuneData
    {
        public int type;
        public int level;
        public float timer;
        public RunePhase phase;

        public void Setup(int ty, int lv = 0)
        {
            type = ty;
            level = lv;
            phase = RunePhase.Droping;
            timer = 0;
        }

        public void SetIdle()
        {
            phase = RunePhase.Idle;
            timer = -1;
        }

        public void SetDrop()
        {
            phase = RunePhase.Droping;
            timer = 0;
        }

        public bool IsIdle()
            => phase == RunePhase.Idle;

        public bool IsDroping()
            => phase == RunePhase.Droping;
    }
}